cd oh-xts-automation
git pull
venv\Scripts\python.exe -m pip install -r requirements.txt
venv\Scripts\python.exe -u main.py
set ret=%ERRORLEVEL%
echo %ret%
cmd /c get_hilog.bat
C:\Users\fengziteng\AppData\Roaming\MobaXterm\slash\bin\wget.exe "http://127.0.0.1:8080/job/%JOB_NAME%/%BUILD_NUMBER%/timestamps/?time=yyyy-MM-dd_HH:mm:ss&appendLog" -O build_with_timestamps.log
echo %ret%

echo "begin copy and upload results"
cd ..
mkdir .\oh-xts-automation-results\%BUILD_NUMBER%
copy /Y /B .\oh-xts-automation\build_with_timestamps.log .\oh-xts-automation-results\%BUILD_NUMBER%
copy /Y /B .\oh-xts-automation\flash_result.png .\oh-xts-automation-results\%BUILD_NUMBER%
copy /Y /B .\oh-xts-automation\hilog.tgz .\oh-xts-automation-results\%BUILD_NUMBER%
copy /Y /B .\oh-xts-automation\hilog.txt .\oh-xts-automation-results\%BUILD_NUMBER%
copy /Y /B .\oh-xts-automation\run_xts.result.txt .\oh-xts-automation-results\%BUILD_NUMBER%
cd oh-xts-automation-results
git pull
git add %BUILD_NUMBER%
git status
git commit -m '%BUILD_NUMBER%'
git push
echo "open https://gitee.com/code4lala/oh-xts-automation-results to get results"

EXIT /B %ret%
